package com.easyweb.generator.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description :表元数据
 * @FileName: TableMeta.java
 * @Author :WeiHui.Zhang
 * @Data : 2016年3月2日 下午9:26:31
 * @Version:V1.00
 */
public class TableMeta {

	/**
	 * 表名
	 */
	private String name;
	/**
	 * 表备注
	 */
	private String remarks;
	/**
	 * 字段
	 */
	private List<ColumnMeta> columnMetas = new ArrayList<ColumnMeta>();
	/**
	 * 生成的 model 名
	 */
	private String modelName;
	/**
	 * 是否有日期字段，有的话包头要导入 java.util.Date;
	 */
	private boolean importDate = false;

	public TableMeta() {
		super();
	}

	public TableMeta(String name) {
		super();
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public List<ColumnMeta> getColumnMetas() {
		return columnMetas;
	}

	public void setColumnMetas(List<ColumnMeta> columnMetas) {
		this.columnMetas = columnMetas;
	}

	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	public boolean isImportDate() {
		return importDate;
	}

	public void setImportDate(boolean importDate) {
		this.importDate = importDate;
	}

	@Override
	public String toString() {
		return "TableMeta [name=" + name + ", remarks=" + remarks + ", columnMetas=" + columnMetas + ", modelName="
				+ modelName + ", importDate=" + importDate + "]";
	}

}
